package com.design01_builder.pattern05_prototype.shallowcloneanddeepclone;

/**
 * @ClassName ConcretePrototype
 * @Description TODO
 * @Author zhangjunhao
 * @DATE 2023/9/3 12:18
 */
public class ConcretePrototype implements Cloneable {

    public ConcretePrototype() {
        System.out.println("具体原型对象创建成功.");
    }


    @Override
    protected ConcretePrototype clone() throws CloneNotSupportedException {
        System.out.println("原型对象复制成功.");
        return (ConcretePrototype) super.clone();
    }
}
